package com.dynamictpm.tooltik;

import java.util.Objects;

/**
 * 描述：： 类工具
 * <p>
 * ------------------------------------
 *
 * @program: dynamic-tpm
 * @ClassName ClassUtil
 * @author: it-yml
 * @create: 2023-07-05 16:21
 * @Version 1.0
 * --------------------------------------
 **/
public class ClassUtil {
    public static boolean isAssignableFrom(Class clazz, Class cls) {
        Objects.requireNonNull(cls, "cls");
        return clazz.isAssignableFrom(cls);
    }

    public static String getCanonicalName(Class cls) {
        Objects.requireNonNull(cls, "cls");
        return cls.getCanonicalName();
    }
}
